export default {
  namespace: 'app',
  state:{
    requestState:false
  },
  effects: {
    * getChange ({ payload }, {put}) {
       console.log(payload)
       yield put({
         type: 'updateState',
         payload
       })
    }
  },
  reducers: {
    updateState (state, { payload }) {
      console.log(payload)
      return {
        ...state,
        ...payload
      }
    }
  }
}